function validator(rule, value, callback) {
    if (value == '') {
        callback(new Error('排序不能为空'));
    } else if (!icu.util.jude(value, 'int')) {
        callback()
    } else {
        callback(new Error('只能为正整数'));
    }
}
let config = {
    isShow: true,
    name: 'dictionaryAddUpdata',
    labelWidth: 120,
    form: [
        { type: 'input', dataType: 'text', key: 'dictName', label: '字典名称', icon: '', disabled: false, placeholder: '请输入字典名称', default: '', showwordlimit: true, maxlength: 50, },
        { type: 'input', dataType: 'text', key: 'dictType', label: '字典类型', icon: '', disabled: false, placeholder: '请输入字典类型', default: '', showwordlimit: true, maxlength: 50, },
        { type: 'input', dataType: 'text', key: 'sort', label: '排序', icon: '', showwordlimit: true, disabled: false, placeholder: '排序', maxlength: 3, default: '' },
        { type: 'input', dataType: 'text', key: 'remarks', label: '备注', icon: '', disabled: false, placeholder: '请输入备注', default: '', showwordlimit: true, maxlength: 200, }
    ],
    rules: {
        dictName: [{ required: true, message: '请输入字典名称', trigger: 'blur' }],
        dictType: [{ required: true, message: '请输入字典类型', trigger: 'blur' }],
        sort: [{ required: true, validator: validator, trigger: 'blur' }],
    },
    grid: {
        xl: 24,
        lg: 24,
        md: 24,
        sm: 24,
        xs: 24
    },
    event: {
        iconInput: () => {
        }
    } // 动态绑定事件
}

export { config }